import 'package:logger/logger.dart';

const String TAG = 'FlutterProjectLog';

var _logger = Logger(
  printer: PrettyPrinter(dateTimeFormat: DateTimeFormat.dateAndTime),
);

logV(dynamic msg, {String? tag}) {
  _logger.v('${tag = tag ?? ''}$msg', time: DateTime.now());
}

logT(dynamic msg, {String? tag}) {
  _logger.t('${tag = tag ?? ''}$msg', time: DateTime.now());
}

logD(dynamic msg, {String? tag}) {
  _logger.d('${tag = tag ?? ''}$msg', time: DateTime.now());
}

logI(dynamic msg, {String? tag}) {
  _logger.i('${tag = tag ?? ''}$msg', time: DateTime.now());
}

logW(dynamic msg, {String? tag}) {
  _logger.w('${tag = tag ?? ''}$msg', time: DateTime.now());
}

logE(dynamic msg, {String? tag}) {
  _logger.e('${tag = tag ?? ''}$msg', time: DateTime.now());
}

logF(dynamic msg, {String? tag}) {
  _logger.f('${tag = tag ?? ''}$msg', time: DateTime.now());
}
